﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum robottype
    {
        CookRobot,
        DeliveryRobot
    }
    abstract class Robot
    {
        public string name { get; set; }
        public robottype type { get; set; }
        public Robot() {
            /*Console.WriteLine("名字：{0} ",this.name);*/
        }
        public Robot(string name)
        {
            this.name = name;
        }
        public abstract void Working();
    }
}
